package Book;

/**
 * Created with IntelliJ IDEA.
 * Description:书籍
 * User: 石方旭
 * Date: 2022-04-13
 * Time: 12:26
 */
public class Book {
    public String bookName;//书名
    public String author;//作者
    public String type;//书籍类型
    public int price;//书籍价格
    public Boolean isBorrow = false;//是否被借阅


    public Book(String bookName, String author, String type, int price) {
        this.bookName = bookName;
        this.author = author;
        this.type = type;
        this.price = price;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Boolean getBorrow() {
        return isBorrow;
    }

    public void setBorrow(Boolean borrow) {
        isBorrow = borrow;
    }
    @Override
    public String toString() {
        return "Book{" +
                "bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", isBorrow=" + isBorrow +
                '}';
    }
}
